<?php 
include('./fun.php');include('./hd_fun.php');
$conn=my_sql($cfg);
$re=user_login();
if($re['err']=='no_login'){direct('login.php?t='.time());exit;}
if($re['err']!='ok'){die($re['err']);}
$user=$re['user'];
$shop_id=$re['shop_id'];
$shop=get_shop();
$set=get_set();

$id=g('id');
$sql='select * from '.$cfg['e'].'yun where shop_id="'.$shop['id'].'" ';
$sql.=' order by id desc';

$l=db($sql);

?>
<style>
yun_list lists{float:left;width:100%;display:flex;flex-direction:row;}
yun_list item{float:left;width:100%;}
yun_list icon{float:left;font-size:24px !important;}
yun_list .icon-squarecheckfill{color:crimson;}
yun_list text{float:left;height:20px;line-height:20px;margin-left:10px;font-size:17px}
yun_list index a{float:right;margin-top:5px;}
</style>
<yun_list>
<?php 
if($l){
foreach($l as $v){
echo '<box>
<b>'.$v['title'].'</b>
<lists>
<item>
<icon class="icon '.($v['is_zt']?'icon-squarecheckfill':'icon-square').'"></icon><text>自提</text>
</item>

<item>
<icon class="icon '.($v['is_ps']?'icon-squarecheckfill':'icon-square').'"></icon><text>配送</text>
</item>

<item>
<icon class="icon '.($v['is_kd']?'icon-squarecheckfill':'icon-square').'"></icon><text>快递</text>
</item>
</lists>
<index><a class="m b '.($id==$v['id']?'select':'').'" onclick="select_yun($(this))" i="'.$v['id'].'" t="'.$v['title'].'">'.($id==$v['id']?'已选择':'选择').'</a><a class="m gay" href="" target="_blank">编辑</a></index>
';

echo '</box>';
}
}else{no_data();}

?>


</yun_list>

<script></script>